import request from '@/utils/request'

// 查询附加费用列表
export function listAdditionalCharge(query) {
  return request({
    url: '/purchase/AdditionalCharge/list',
    method: 'get',
    params: query
  })
}

// 查询附加费用详细
export function getAdditionalCharge(id) {
  return request({
    url: '/purchase/AdditionalCharge/' + id,
    method: 'get'
  })
}

// 新增附加费用
export function addAdditionalCharge(data) {
  return request({
    url: '/purchase/AdditionalCharge',
    method: 'post',
    data: data
  })
}

// 修改附加费用
export function updateAdditionalCharge(data) {
  return request({
    url: '/purchase/AdditionalCharge',
    method: 'put',
    data: data
  })
}

// 删除附加费用
export function delAdditionalCharge(id) {
  return request({
    url: '/purchase/AdditionalCharge/' + id,
    method: 'delete'
  })
}
